/* MotorDriver
    An example of how to use the MotorDriver library.
    
    Functions:
      -rotateForward(int motorSpeed);
      -rotateReverse(int motorSpeed);
      -rotateForwardFull();
      -rotateReverseFull();
      -stopMotor();
      
    Revision History:
      4/02/12  SCL  Created the class and implemented all functions.
      4/07/12  SCL  Changed the structure into a library
*/

#include "MotorDriver.h"

// Can be any two PWM pins
int motorPin1 =  5;
int motorPin2 =  6;

MotorDriver m1(motorPin1, motorPin2);

void setup()   {                
  //Aint doin shit
}

/* loop
    Show an example of how the motor drive could be used. Runs in full for both forward and reverse, and then at half power for both forward and reverse.
*/
void loop()                     
{
  
  // Foward
  m1.rotateForwardFull();
  delay(1000);
  
  // Stop
  m1.stopMotor();
  delay(1000);
  
  // Reverse
  m1.rotateReverseFull();
  delay(1000);
  
   // Stop
  m1.stopMotor();
  delay(1000);
  
  // Half Foward Speed
  m1.rotateForward(128);
  delay(1000);
  
  // Stop
  m1.stopMotor();
  delay(1000);
  
  // Half Reverse Speed
  m1.rotateReverse(128);
  delay(1000);
  
    // Stop
  m1.stopMotor();
  delay(1000);
}
